-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process ANSWER-style defaults in apply_composite_tag #234
Conversation
xl2times/utils.py
Outdated
defaults = defaults.split(",") | ||
else: | ||
# Make it a list | ||
defaults = list([defaults]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaults = list([defaults]) | |
defaults = [defaults] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the if else
statemement, because str.split()
returns a list.
xl2times/utils.py
Outdated
logger.warning( | ||
f"Expected ANSWER-style defaults, got {invalid_defaults}" | ||
) | ||
defaults = [default.split("=") for default in defaults] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaults = [default.split("=") for default in defaults] | |
defaults = [default.split("=") for default in defaults if '=' in defaults] |
Perhaps we want to do this for the non invalid defaults?
This PR pushes the NZ model above 95%.